home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / pc_board / logoff7.zip / LOGOFF7.DOC < prev    next >
Text File  |  1992-01-12  |  11KB  |  302 lines

  1.  
  2.                                  LOGOFF TESTING
  3.                                   Version 7.0
  4.                                 January 12,1992
  5.                            Written By: John Kleinbauer
  6.  
  7.                                 Distributed By:
  8.                              The Free For All BBS
  9.                                 1-201-998-7337
  10.  
  11.  
  12.                   WHAT IS LOGOFF TESTING AND HOW DOES IT WORK ?
  13.  
  14.  
  15.               LOGOFF TESTING works only with PCBoard 14.5A and it allows you
  16.     to have your uploaded files checked after the caller has logged off.
  17.  
  18.               How it works is whenever a file is uploaded PCBTEST.BAT makes
  19.     a file called FLAG.001 and $$LOGOFF.BAT makes a file called FLAG.002
  20.     whenever someone logs off.The batch file $$LOGON.BAT creates a FLAG.003
  21.     whenever someone logs on.These three flag-files give BOARD.BAT it's brains.
  22.     When the caller logs off PCBoard drops to DOS and tests files if there
  23.     is a FLAG.001 file.But if there is a FLAG.002 or FLAG.003 file then
  24.     PCBoard reloads.
  25.  
  26.  
  27.                   WHAT MAKES THIS METHOD BETTER THAN THE REST!
  28.  
  29.  
  30.     1.Callers don't have to wait online while files are being checked.
  31.  
  32.     2.Checking files at the DOS level stops the board from locking up on
  33.       large files.
  34.  
  35.     3.The Program AUTOSCAN can do ZIPS in ZIPS in ZIPS or ARCS in ZIPS and
  36.       ZIPS in ARCS all levels all types of compressions.
  37.  
  38.     4.You will be all set for the NEW PKZIP because the NEW PKZIP will
  39.       pack tighter but will take longer to unzip and zip.
  40.  
  41.  
  42.                                       WHY ?
  43.  
  44.  
  45.               It all started when a fellow Sysop complained to me that he
  46.     had uploaded to a BBS using a 9600 baud modem with the fastest protocol
  47.     but then had to sit online while the files were checked.It's funny when
  48.     you stop and look at the fact that people are constantly coming out with
  49.     protocols that are slightly faster but no one has addressed this issue.
  50.  
  51.  
  52.                                     MY GOAL
  53.  
  54.  
  55.               My GOAL was to get PCBoard to Strip BBS ADS,Scan for Viruses
  56.     and Add my BBS AD all after the user logs off.
  57.  
  58.  
  59.                                    OBSTACLES
  60.  
  61.  
  62.               To make matters tough I don't know any real programming except
  63.     for simple basic programs so I was forced to use existing software.
  64.                                      
  65.  
  66.                           WHAT MAKES IT ALL POSSIBLE 
  67.     
  68.  
  69.     The First SECRET is to set PCBoard to drop to DOS After Each Call found
  70.               in PCBSetup-Options #1...
  71.  
  72.     The Second SECRET is to add the line " copy pcbtest.bat flag.001 " at the
  73.               end of the PCBTEST.BAT...
  74.  
  75.     The Third SECRET is to add the line " copy $$logoff.bat flag.002 " at the
  76.               end of the $$LOGOFF.BAT...
  77.               
  78.     The Fourth SECRET is to make a $$LOGON.BAT that has the line
  79.               " copy $$logon.bat flag.003 "...
  80.  
  81.  
  82.                       EXAMPLE OF ONE UPLOAD DIRECTORY
  83.  
  84.  
  85.               Here is my BOARD.BAT with comments and I include it with
  86.     this version you need only change your Directory names and put AUTOSCAN
  87.     AUTOSCAN.CFG and BBSAD.TXT where they belong.
  88.  
  89.  
  90.     @echo off
  91.     c:
  92.     cd \pcb
  93.     set pcb=/swap
  94.     set dszlog=c:\pcb\pcbdsz.log
  95.     if exist remote.bat rename remote.bat remote.sys
  96.     if exist event.bat rename event.bat event.sys
  97.     if exist door.bat del door.bat
  98.     if exist endpcb del endpcb
  99.     pcb145
  100.     if exist remote.bat remote
  101.     if exist door.bat door
  102.     if exist event.bat event
  103.     if exist endpcb goto end
  104.     board
  105.     :end
  106.     if exist flag.001 goto test
  107.     if exist flag.002 goto reload1
  108.     if exist flag.003 goto reload2
  109.     if exist endpcb goto exit_to_dos
  110.     :test
  111.     echo ATH1M0 >com1  ;This makes phone busy during testing.....
  112.     echo off
  113.     cd\upload2         ;Change this to name of your upload directory.....
  114.     autoscan
  115.     cd\pcb
  116.     if exist flag.001 del flag.001  ;Testing is done delete flag.
  117.     :RELOAD1
  118.     if exist flag.002 del flag.002
  119.     :reload2
  120.     if exist flag.003 del flag.003
  121.     board
  122.     :exit_to_dos       ;Drop to DOS for maintenance.....
  123.     exit
  124.                                 
  125.  
  126.                        EXAMPLE OF TWO UPLOAD DIRECTORIES
  127.  
  128.  
  129.     @echo off
  130.     c:
  131.     cd \pcb
  132.     set pcb=/swap
  133.     set dszlog=c:\pcb\pcbdsz.log
  134.     if exist remote.bat rename remote.bat remote.sys
  135.     if exist event.bat rename event.bat event.sys
  136.     if exist door.bat del door.bat
  137.     if exist endpcb del endpcb
  138.     pcb145
  139.     if exist remote.bat remote
  140.     if exist door.bat door
  141.     if exist event.bat event
  142.     if exist endpcb goto end        ;This is set by hitting the ESC key.....
  143.     board
  144.     :end
  145.     if exist flag.001 goto test
  146.     if exist flag.002 goto reload1
  147.     if exist flag.003 goto reload2
  148.     if exist endpcb goto exit_to_dos
  149.     :test
  150.     echo ATH1M0 >com1  ;This makes phone busy during testing.....
  151.     echo off
  152.     cd\upload2         ;Private upload area set it to the name of yours.....
  153.     autoscan
  154.     e:
  155.     cd\upload          ;Main upload area set to the name of yours.....
  156.     autoscan
  157.     c:
  158.     cd\pcb
  159.     if exist flag.001 del flag.001
  160.     :reload1
  161.     if exist flag.002 del flag.002
  162.     :reload2
  163.     if exist flag.003 del flag.003
  164.     board
  165.     :exit_to_dos              ;Drop to DOS for maintenance.....
  166.     exit
  167.  
  168.  
  169.                                   EASY SETUP !
  170.  
  171.  
  172.     1 Don't forget to set PCBoard to drop to DOS After Each Call in the
  173.       PCBsetup-OPTIONS #1.
  174.  
  175.     2 Put AUTOSCAN and AUTOSCAN.CFG in your path same directory as PKUNZIP,
  176.       PKZIP,and SCAN.
  177.  
  178.     3 BBSAD.TXT goes in your PCB directory.
  179.  
  180.     4 Make sure you rename UPLOAD2 and UPLOAD to the name of your directory
  181.       in one of the two BOARD.BATs I have supplied.
  182.  
  183.     5 Add the lines " copy pcbtest.bat flag.001 " to the very end of your
  184.       PCBTEST.BAT or use the one I have supplied.
  185.  
  186.     6 Put the $$LOGOFF.BAT I have supplied in the PCB directory.
  187.  
  188.     7 Make sure the line " echo ATH1M0 >com1 " will pickup your phone line.
  189.       Your modem might need a different command or you might need to change
  190.       com1 to com2.
  191.  
  192.     8 Using the program that comes with PCBoard (MKTXT145) go into you
  193.       PCBTEXT on line 575 and change it to %C:\PCB\GEN\LOGOFF,this will
  194.       call up the screen (LOGOFF) I have supplied or make your own.It tells
  195.       the user that you are quickly verifying the program and further
  196.       testing will take place when the caller logs off.
  197.  
  198.     9 Put my drawing LOGOFF or yours in the C:\PCB\GEN directory.
  199.  
  200.    10 Put $$LOGON.BAT in your PCB directory.
  201.  
  202.  
  203.                           HISTORY OF LOGOFF TESTING
  204.  
  205.  
  206.     Version 1.0  Contained information to make three batch files
  207.      11-20-91    needed to do LOGOFF TESTING.
  208.  
  209.     Version 2.0  Contained information to do LOGOFF TESTING with only
  210.      11-22-91    BOARD.BAT an example BOARD.BAT was included.
  211.  
  212.     Version 3.0  Contains information to do LOGOFF TESTING with only BOARD.BAT
  213.      11-23-91    and comes with a working BOARD.BAT that will now busy the
  214.                  phone during testing.
  215.  
  216.     Version 4.0  Added line to PCBTEST.BAT to flag BOARD.BAT when there are
  217.      12-16-91    new files to be tested.Now if there are no new files
  218.                  to be tested then the board is reloaded making overall speed
  219.                  very fast.
  220.  
  221.     Version 5.0  By utilizing $$LOGOFF.BAT to create FLAG.TWO I was able to
  222.      12-19-91    eliminate the program PAUZ.Hitting ESC than 1 is no longer
  223.                  necessary.Files are now tagged by the PCBTEST.BAT as they are
  224.                  uploaded so that the BOARD.BAT is simpler to setup if you have
  225.                  more than one directory to scan.
  226.                                                
  227.     Version 6.0  Added $$LOG0N.BAT to fix problem if caller dropped or lost
  228.      12-22-91    carrier while in a DOOR,PCBoard would drop to DOS.
  229.  
  230.     Version 7.0  Modified BOARD.BAT so Qmail would not cause the board to
  231.      01-12-92    drop to dos after someone exited it.
  232.  
  233.      
  234.                      FILES CONTAINED IN THIS PACKAGE
  235.  
  236.  
  237.     LOGOFF7.ZIP   The real name of this ZIP
  238.     BBSAD.TXT     Example of my BBS AD.
  239.     BOARD.BAT     Example BOARD.BAT testing of one upload directory.
  240.     BOARD2.BAT    Example BOARD.BAT testing of two upload directories
  241.     LOGOFF        The screen I show my users while PCBTEST.BAT is running.
  242.     LOGOFF7.DOC   This DOC.
  243.     PCBTEST.BAT   A working PCBTEST.BAT with " copy pcbtest.bat flag.001 "
  244.                   to the end.
  245.     $$LOGOFF.BAT  This tells the BOARD.BAT that a normal logoff has occurred
  246.                   by creating FLAG.002...
  247.     $$LOGON.BAT   This tells the BOARD.BAT that a normal logon has occurred
  248.                   by creating FLAG.003...
  249.  
  250.  
  251.                  SOME LAST WORDS ABOUT LOGOFF TESTING AND AUTOSCAN
  252.  
  253.  
  254.          The first time you run AUTOSCAN it will run a long time while it
  255.     unzips each file,scans it and puts the name of the file into the DAT.So
  256.     you can save yourself some time by moving some of the files to the
  257.     directories where they belong before you run this program. Try to
  258.     remember not to DELETE the DATs found in each directory or you will be
  259.     scanning the files all over again after the next caller hangs up.The
  260.     registered version of AUTOSCAN will scan more than one directory just
  261.     using the AUTOSCAN.CFG but I have not tried this because it would only
  262.     mess up your day being you haven't registered yours yet.
  263.  
  264.  
  265.               Don't forget the program AUTOSCAN is not free but my IDEA is
  266.     and you can reach me on my BBS if you need something.
  267.  
  268.  
  269.  
  270.                        Special Thanks To........
  271.  
  272.  
  273.  
  274.     Vincent Rifici   No Nonsense BBS          For telling me about the
  275.                      908-654-3178            "drop to dos after each call"
  276.                                               and to hang in there.
  277.    
  278.     Bob Roncaglio    221-B Baker St.          For being the first to
  279.                      201-661-2690             install Logoff Testing
  280.                                               and never doubting my
  281.                                               IDEA.
  282.  
  283.     Neil Stewart     E.I.B. System            For bringing to my attention
  284.                      201-664-7217             the need for Logoff Testing
  285.                                               and trying it out.
  286.  
  287.     Bill Leaming     Vocations Central        For helping me with the Qmail
  288.                      201-485-5705             problem and pointing out a
  289.                                               test sequencing problem.
  290.                                                         
  291.  
  292.  
  293.                                                  GOOD LUCK
  294.  
  295.                                               John Kleinbauer
  296.                                               15 Fisher Place
  297.                                               North Arlington
  298.                                               New Jersey 07031
  299.                                               United States of America
  300.                                               THE FREE FOR ALL BBS
  301.                                               1-201-998-7337 
  302.